package interfaces;

public class MyDoor extends AbstractDoor implements IAlarm{

	@Override
	public void alarm() {
		System.out.println("警报一响");
	}
	public static void main(String[] args) {
		MyDoor mydoor = new MyDoor();
		mydoor.alarm();
	}
	@Override
	public void open() {
		System.out.println("MyDoor.open()");
	}
	@Override
	public void close() {
		System.out.println("MyDoor.close()");
	}

}
